tertiary optimization on a tarcles puzzle :P